package com.dt.app.api.product.service;

import com.dt.app.modules.product.entities.Category;
import com.dt.app.modules.product.vo.CategoryBean;
import com.baomidou.mybatisplus.extension.service.IService;
import io.swagger.annotations.ApiOperation;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 * @author 鸿源塔基
 * @since 2024-03-05
 */
public interface ICategoryService extends IService<Category> {
    @ApiOperation(value = "树结构，最多4层")
    public List<CategoryBean> buildTree(List<CategoryBean> list, Integer cid);
    /**
     * 获取路径名称，最多4层
     * @return
     */
    public String getPathName(Integer parentId);
}
